﻿using static System.Runtime.InteropServices.JavaScript.JSType;
using System.Text.Json.Serialization;

namespace Services.AI.WebApi.Model;

public class ResponseData
{
    [JsonPropertyName("data")]
    public Data Data { get; set; }

    [JsonPropertyName("code")]
    public int Code { get; set; }

    [JsonPropertyName("message")]
    public string Message { get; set; }

    [JsonPropertyName("timestamp")]
    public long Timestamp { get; set; }
}
public class Data
{
    [JsonPropertyName("requestId")]
    public string RequestId { get; set; }

    [JsonPropertyName("content")]
    public string Content { get; set; }

    [JsonPropertyName("token")]
    public TokenUsage Token { get; set; }
}

public class TokenUsage
{
    public class Usage
    {
        [JsonPropertyName("completion_tokens")]
        public int CompletionTokens { get; set; }
        [JsonPropertyName("prompt_tokens")]
        public int PromptTokens { get; set; }
        [JsonPropertyName("total_tokens")]
        public int TotalTokens { get; set; }
    }

    [JsonPropertyName("usage")]
    public Usage MyUsage { get; set; }
}


public class ActitivityContent
{
    [JsonPropertyName("IsActivity")]
    public bool IsActivity { get; set; }

    [JsonPropertyName("ActivityIds")]
    public List<int> ActivityIds { get; set; }

    [JsonPropertyName("Content")]
    public string Content { get; set; }
}
